package cn.knight.system.mapper;

import cn.knight.system.domain.Menu;
import cn.knight.system.domain.Permission;
import cn.knight.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author winnie
 * @since 2022-07-11
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission loadBySn(String sn);

    List<Permission> loadByRoleId(Long id);

    List<String> loadOwnPermissionByLogininId(Long id);
}
